package com.li.client.service;

import com.li.client.entities.User;
import com.li.client.util.GwtCallBack;

/**
 * 
 * Utility DataManager to get non event specific data.
 * 
 */
public final class DataUtilityManager
{
	private static User currentUser;

	private DataUtilityManager()
	{

	}

	public static void getCurrentUser(final ResultCallBack<User> clientcallback)
	{
		
		DataServiceFactory.getService().getCurrentUser(new GwtCallBack<User>() {

			@Override
			protected void onResult(User result) {
				currentUser = result;
			}
		});
		
	}

	public static User getCurrentUser()
	{
		return currentUser;
	}
	
	
	public static void setCurrentUser(User user) {
		currentUser = user;
	}
}
